﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.Util;
using Emgu.CV.CvEnum;

namespace OpenCV_STD
{
    public partial class Form2 : Form
    {
        OpenGLBase myGLView = new OpenGLBase();

        public Form2()
        {
            InitializeComponent();
            myGLView.Dock = DockStyle.Fill;
            myGLView.Location = new Point(0, 0);
            myGLView.Name = "OpenGLView1";
            myGLView.Visible = true;
            Controls.Add(myGLView);
            ResumeLayout(false);
        }

        public void SetEye(double x, double y)
        {
            myGLView.eyeX = (x - 0.5) * 30;
            myGLView.eyeY = (y - 0.5) * 30;
        }
    }
}
